#include "mywidget.h"
#include "ui_mywidget.h"

MyWidget::MyWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MyWidget)
{
    ui->setupUi(this);
    setLayout(ui->verticalLayout);
    ui->MyLabel->setText("My first programm");
}

MyWidget::~MyWidget()
{
    delete ui;
}

void MyWidget::on_pushButton_clicked()
{
    ui->lineEdit_2->setText(ui->lineEdit->text());

}

void MyWidget::on_actionDrdr_triggered()
{
      ui->MyLabel->setText(ui->lineEdit->text());
}
